// test.ts

import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/diagnosis',
    method: 'post',
    response: ({ query }) => {
      return {
        code: 0,
        msg: '',
        data: {
          img: '',
        },
      }
    },
  },
  {
    url: '/province/list',
    method: 'get',
    response: ({ query }) => {
      return {
        code: 0,
        msg: '',
        data: [
          {
            id: 1,
            name: '北京',
            en_name: 'beijing',
          },
          {
            id: 2,
            name: '江西',
            en_name: 'jiangxi',
          },
        ],
      }
    },
  },
  {
    url: '/subject-by-province',
    method: 'get',
    timeout: 2000,
    response: ({ query }) => {
      return {
        code: 0,
        msg: '',
        data: {
          is_general: 0,
          subject: [
            {
              id: 1,
              name: '语文',
              en_name: 'chinese',
              subject_score: 150,
            },
            {
              id: 2,
              name: '数学',
              en_name: 'math',
              subject_score: 150,
            },
            {
              id: 3,
              name: '数学',
              en_name: 'math',
              subject_score: 150,
            },
            {
              id: 4,
              name: '数学',
              en_name: 'math',
              subject_score: 150,
            },
            {
              id: 5,
              name: '数学',
              en_name: 'math',
              subject_score: 150,
            },
            {
              id: 6,
              name: '数学',
              en_name: 'math',
              subject_score: 150,
            },
          ],
        },
      }
    },
  },
] as MockMethod[]
